/**
 * C Programming: A Modern Approach
 *
 * version: 2nd
 * author: K.N.King
 * http://knking.com/books/c2
 */

#include <stdio.h>

/**
 *
 */

int main(void) {
    float amount;
    float added;
    printf("Enter an amount: ");
    scanf("%f", &amount);

    // add 5%
    added = amount + amount * 0.05;
    printf("With tax added: $%.2f\n", added);

    return 0;
}

/*
output:
Enter an amount: 100
With tax added: $105.00
*/